package com.shop.cereshop.app.dao.recommend;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.cereshop.commons.domain.recommend.CereRecommendTypeRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereRecommendTypeRelationDAO extends BaseMapper<CereRecommendTypeRelation> {
    List<CereRecommendTypeRelation> selectByTrendIds(List<Long> trendIds);

    void insertByIds(@Param("recommendId") Long recommendId, @Param("list") List<Long> recommendTypeIdList);

    void deleteByRecommendId(Long recommendId);

    List<Long> selectRecommendTypeIds();
}
